﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace XrmLinq.Entities
{
    /// <summary>
    /// Represents an error that occurs within the CRM web service (<c>SoapException</c>).
    /// </summary>
    [Serializable]
    public class CrmException : ApplicationException
    {
        public CrmException() { }

        public CrmException(string message, Exception innerException) : base(message, innerException) { }

        protected CrmException(SerializationInfo serializationInfo, StreamingContext context) : base(serializationInfo, context) { }

        public CrmException(string message)
            : base(message)
        {
        }
    }
}
